/*
 * @Author: your name
 * @Date: 2021-09-30 20:27:34
 * @LastEditTime: 2021-09-30 21:01:31
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \luogu\1.6二分查找\P1024\equation.h
 */
class Equation
{
private:
    //方程参数
    double m_a;
    double m_b;
    double m_c;
    double m_d;
    //未找到
    double NOT_FIND;
public:
    Equation(double a, double b, double c, double d);
    ~Equation();

    //函数求值
    double f(double x);
    //在left和right检索答案
    double binarySearch(double left, double right);
    
    //get函数
    double getNOT_FIND();
};